import {history} from "@@/core/history";
const addHistorySilently = (newPathname:string) => {
  console.log('update history to', newPathname)
  const currentLocation = history.location;
  const newPath = {
    ...currentLocation,
    pathname: newPathname, // 修改 pathname
  };

  // 通过原生 API 操作
  window.history.pushState({}, '', history.createHref(newPath));
};

export {addHistorySilently}
